package com.smh.service;

import com.smh.common.CommonResult;
import com.smh.entity.Device;

import java.util.ArrayList;

public interface DeviceService {
    CommonResult<ArrayList<Device>> queryAll();

    CommonResult<Device> add(Device device);

    CommonResult<Device> update(Device device);

    CommonResult<Device> delete(Integer id);

    CommonResult<Device> queryById(Integer id);

    CommonResult<ArrayList<Device>> listByPage(Integer page, Integer size);
}
